package com.practice.system.mapper;

import com.practice.system.pojo.PlanningDetail;
import com.sun.org.apache.xpath.internal.operations.Bool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LinkPlanningDetailchedulingMapper {
    /**
     * 因为任务五上半部分和下半部分是一对多的关系，所以下半部分和上半部分有关联表(LinkPlanningDetailcheduling)，通过这个关联表查询出对应的物料数组
     * @param one
     * @return
     */
    List<String> listByPlanningChedulingId(String one);

    Boolean deleteByTwoId(String planningShcedulingId,String planningDetailId);

    Boolean addByTwoId(String planningShcedulingId,String planningDetailId);

    boolean deleteByScheduling(String id);
}
